<?php
class ImageWidget extends CInputWidget
{
    public $form;
    public $path = '/uploads/partner/';
    public $imageAttribute = 'photo';

    public function run()
    {
        $this->render('image', array('model' => $this->model, 'form' => $this->form));
    }
}

?>